package wwl.lsf.test;

import java.util.Stack;

public class StringBuilderText {

    public static void main(String[] args) {

//        StringBuilder stringBuilder = new StringBuilder();
//        stringBuilder.append("abc");
//        System.out.println("stringBuilder = " + stringBuilder);
//        int length = stringBuilder.length();
//        System.out.println("length = " + length);
//        stringBuilder.replace(0, 3, "123");
//        System.out.println("stringBuilder = " + stringBuilder);

        Stack<String> objects = new Stack<>();
        objects.push("abc");
        objects.push("123");
        objects.push("aoe");
        String pop = objects.pop();
        System.out.println("pop = " + pop);
    }
}
